<script type="text/javascript">
Ext.ns('catalog.security.homePage');
catalog.security.homePage.FormPanel =  Ext.extend(Ext.form.FormPanel, {
       id:'catalog.security.homePage.FormPanel',
        title:'Pagina principala' ,
       	initComponent:function() {
       	    var config = {

    items:[{

                   html:'<img src="security/images/framework/index.jpg"/>',
                     style: {'text-align': 'center'}
                         		               }] ,
         autoScroll:true
       }; // eof config object
                    // apply config

                    Ext.apply(this, Ext.apply(this.initialConfig, config));
                    // call parent
                    catalog.security.homePage.FormPanel.superclass.initComponent.apply(this, arguments);

                  }
});
   Ext.onReady(function() {
       Ext.QuickTips.init();
       Ext.form.Field.prototype.msgTarget = 'side';

       var formPanel = new catalog.security.homePage.FormPanel();
       if (mainPanel) {
           mainPanel.add(formPanel)
            mainPanel.setActiveTab(formPanel);
            mainPanel.getActiveTab().doLayout();

       } else {
           var vp = new Ext.Viewport({layout:'fit', items:[formPanel]});
       }

   });

   </script>